package com.cskaoyan.service.system;

import com.cskaoyan.bean.system.Permissions;
import com.cskaoyan.bo.system.ListWithNameBo;
import com.cskaoyan.bo.system.PermsUpdateBo;
import com.cskaoyan.bo.system.RoleCreateBo;
import com.cskaoyan.vo.system.PermissionsVo;
import com.cskaoyan.vo.system.RoleCreateVo;
import com.cskaoyan.vo.system.RoleListVo;
import com.cskaoyan.vo.system.RoleOptionsVo;

import java.util.ArrayList;
import java.util.List;

public interface RoleService {
    ArrayList<RoleOptionsVo> roleOptions();

    void permissionInsert(List<Permissions> perms);

    PermissionsVo rolePermissions(Integer roleId);

    RoleListVo listRoles(ListWithNameBo listWithNameBo);

    RoleCreateVo createRole(RoleCreateBo roleCreateBo);

    int updateRole(RoleCreateVo roleUpdateBo);

    int deleteRole(Integer id);

    int updatePerms(PermsUpdateBo permsUpdateBo);
}
